using System;
using System.Collections.Generic;
using System.Text;

namespace Objects
{
    public class ThongTinGiaoTheTaiNha
    {
        #region ThongTinGiaoTheTaiNha variables

        private String _NguoiNhan;
      
        private String _ThongDiep;
        private String _DiaChi;

        private String _SoDienThoai;
        private String _TenMauThe;


        #endregion

        #region ThongTinGiaoTheTaiNha properties
        
        public String NguoiNhan
        {
            get { return _NguoiNhan; }
            set { _NguoiNhan = value; }
        }
        public String DiaChi
        {
            get { return _DiaChi; }
            set { _DiaChi = value; }
        }

        public String ThongDiep
        {
            get { return _ThongDiep; }
            set { _ThongDiep = value; }
        }


        public String SoDienThoai
        {
            get { return _SoDienThoai; }
            set { _SoDienThoai = value; }
        }

        public String TenMauThe
        {
            get { return _TenMauThe; }
            set { _TenMauThe = value; }
        }

        #endregion

        #region IPopulatable<ThongTinGiaoTheTaiNha> Members

        public ThongTinGiaoTheTaiNha Populate(System.Data.DataRow reader)
        {
            ThongTinGiaoTheTaiNha item = new ThongTinGiaoTheTaiNha();

            item.NguoiNhan = Convert.ToString(reader["NguoiNhan"].ToString());
            item.DiaChi = Convert.ToString(reader["DiaChi"].ToString());

            item.ThongDiep = Convert.ToString(reader["ThongDiep"].ToString());

            item.SoDienThoai = Convert.ToString(reader["SoDienThoai"].ToString());


            item.TenMauThe = Convert.ToString(reader["TenMauThe"].ToString());

            return item;
        }

        #endregion
    }
}
